// 把相关的接口导入
import {
  tianRequset,
  tencentRequest,
  riskArea
} from '@/utils/request.js'

const tianKey = '88ed4c89f2748a91731baea201bb844f'

// 向外导出中国热点播报api函数
const getHotMesChinaAPI = function() {
  return tianRequset.get(`/ncov/index?key=${tianKey}`)
}
// 向外导出包括中国的全球疫情信息api函数
const getAllCountriesMsgAPI = function() {
  return tianRequset.get(`/ncovabroad/index?key=${tianKey}`)
}

// 向外导出全球各地疫情信息api函数
const getStatisticsEarthAPI = function() {
  return tencentRequest.get('/newsqa/v1/automation/modules/list?modules=VaccineSituationDatahttps://api.inews.qq.com/newsqa/v1/automation/modules/list?modules=FAutoCountryConfirmAdd,WomWorld,WomAboard')
}

// 向外导出中国各地疫情信息api函数
const getStatisticsChinaAPI = function() {
  return tencentRequest.get('/newsqa/v1/query/inner/publish/modules/list?modules=statisGradeCityDetail,diseaseh5Shelf')
}

// 向外导出中国疫情信息的趋势api函数
const getCompareChinaAPI = function() {
  return tencentRequest.get('/newsqa/v1/query/inner/publish/modules/list?modules=chinaDayList,chinaDayAddList,nowConfirmStatis,provinceCompare')
}

// 向外导出中高风险地区信息api函数
const getRiskAreaAPI = function() {
  return riskArea.get('/2021/0202/196/1680100273140422643-135.json?t=27511652')
}

// 向外导出全世界国家疫苗接种趋势api函数
const getWorldTrendOfVacAPI = function() {
  return tencentRequest.get('/newsqa/v1/automation/modules/list?modules=VaccineTrendData')
}

// 向外导出全世界国家疫苗接种数和百人数比api函数
const getWorldNumOfVacAPI = function() {
  return tencentRequest.get('/newsqa/v1/automation/modules/list?modules=VaccineSituationData')
}

export {
  getHotMesChinaAPI,
  getStatisticsEarthAPI,
  getStatisticsChinaAPI,
  getCompareChinaAPI,
  getRiskAreaAPI,
  getAllCountriesMsgAPI,
  getWorldTrendOfVacAPI,
  getWorldNumOfVacAPI
}
